<div class="row" *ngIf="progress.isCompleted">
  <div class="col-5 animated animated-delay-300 fadeInUp float-left">
    <div class="card">
      <div class="card-header font-weight-bold p-1">
        <span class="fa fa-fw fa-info-circle"></span>设备信息
      </div>
      <div class="card-body p-1">

        <div class="form-group row" *ngIf="deviceInfo?.system_info">
          <span class="col-3 col-form-span text-right">操作系统</span>
          <div class="col-7">
            <span>{{deviceInfo.system_info}}</span>
          </div>
        </div>

        <div class="form-group row" *ngIf="deviceInfo?.memory_total">
          <span class="col-3 col-form-span text-right">内存</span>
          <div class="col-7">
            <span>{{deviceInfo.memory_total}}G</span>
          </div>
        </div>

        <div class="form-group row" *ngIf="deviceInfo?.disk_total">
          <span class="col-3 col-form-span text-right">硬盘</span>
          <div class="col-7">
            <span>{{deviceInfo.disk_total}}G</span>
          </div>
        </div>



        <div class="form-group row" *ngIf="deviceInfo?.system_version">
          <span class="col-3 col-form-span text-right">系统版本</span>
          <div class="col-7">
            <span>{{deviceInfo.system_version}}</span>
          </div>
        </div>

        <div class="form-group row" *ngIf="deviceInfo?.system_number">
          <span class="col-3 col-form-span text-right">系统类型</span>
          <div class="col-7">
            <span >{{deviceInfo.system_number}}</span>
          </div>
        </div>

        <div class="form-group row" *ngIf="deviceInfo?.start_time">
          <span class="col-3 col-form-span text-right">开机时间</span>
          <div class="col-7 ">
            <span>{{deviceInfo.start_time}}</span>
          </div>
        </div>

        <div class="form-group row">
          <div class="col-6 text-center">
            <button type="button" class="btn btn-teal btn-sm w-50"
                    (click)="showWarnningInfoModal(0)">关机
            </button>
          </div>
          <div class="col-6 text-center">
            <button type="button" class="btn btn-teal btn-sm w-50"
                    (click)="showWarnningInfoModal(1)">重启
            </button>
          </div>
        </div>
      </div>
    </div>
  </div>
  <div>
    <div class="card">
      <div class="card-header font-weight-bold">
        <span class="fa fa-fw fa-info-circle"></span>CPU使用率
      </div>
      <div class="card-body p-1">
        <device-cpu></device-cpu>
      </div>
    </div>
    <div class="card">
      <div class="card-header font-weight-bold">
        <span class="fa fa-fw fa-info-circle"></span>内存使用率
      </div>
      <div class="card-body p-1">
        <device-memory-usage class="mt-3"></device-memory-usage>
      </div>
    </div>
  </div>
</div>
<ng-tools-modal #modal></ng-tools-modal>
